<template>
  <div class="card">
    <div class="img">
      <el-image src="https://publicqn.saikr.com/goods/2024/03/08/sk65ea8e9ddfd343.814515121709870771433.png?imageView2/1/w/416/h/416"></el-image>
    </div>
    <div class="introduce">
      <div class="title">
        <p>[预售] 2023年全国大学生英语作业大赛金牌作品精品集</p>
      </div>
      <div class="info">
        <div class="price">
          <div class="c">
            <p>¥39.00</p>
          </div>
          <div class="o">
            <p>¥39.00</p>
          </div>
        </div>
        <div class="buy-count">
          <span>1人已购买</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts"></script>

<style lang="scss" scoped>
.card {
  border: 1px solid #eaeaea;
  border-radius: 10px;
  transition: box-shadow 0.3s ease-in-out;
  cursor: pointer;
  &:hover {
    box-shadow: 0px 10px 30px 0px #dcdcdc;
  }
  .introduce {
    padding: 10px;
    .title {
      font-size: 14px;
      color: #666;
      font-weight: bold;
    }
    .info {
      margin-top: 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      .price {
        display: flex;
        align-items: center;
        justify-content: center;
        .c {
          color: #f00;
        }
        .o {
          color: #bbb;
          font-size: 12px;
          margin-left: 5px;
        }
      }
      .buy-count {
        color: #bbb;
        font-size: 11px;
      }
    }
  }
}
</style>
